<?php

/**
 * Description of index
 * 
 * @author trangnguyen
 * @since Feb 22, 2014 - 3:14:14 PM
 */
/**
 * End of index
 */
?>

<?php

if ($this->category == true)
{
    $this->pageTitle = $category->name . ' - ' . Option::getItem('site_name');

    $this->renderPartial('list_product', array(
        'products' => $products,
        'pages' => $pages,
    ));
}
elseif ($this->new_product == true)
{
    $this->pageTitle = Option::getItem('new_product') . ' - ' . Option::getItem('site_name');
    $this->renderPartial('list_product', array(
        'products' => $new_products,
        'pages' => $pages,
    ));
}
elseif ($this->saleOf_product == true)
{
    $this->pageTitle = Option::getItem('sale_of') . ' - ' . Option::getItem('site_name');
    $this->renderPartial('list_product', array(
        'products' => $saleOf_product,
        'pages' => $pages,
    ));
}
?>

